package com.itheima.service.impl;

import com.itheima.domain.insertGame;
import com.itheima.mapper.YouxiMapper;
import com.itheima.service.aiwanservice;
import com.itheima.vo.youxiVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class youxiservie implements aiwanservice {
    @Autowired
    private YouxiMapper youxiMapper;
    @Override
    public List<youxiVO> game() {

        return  youxiMapper.selectAll();
    }

    @Override
    public void lrxx(insertGame intg) {
        youxiMapper.lrxx(intg);
    }

    @Override
    public void xiugai(insertGame intg1) {
        youxiMapper.xiugai(intg1);
    }

    @Override
    public void chanchu(Integer id) {
        youxiMapper.chanchu(id);
    }
}
